﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Globalization;
using PersianDateLib;

namespace PersianCalendarF
{
    public partial class Form1 : Form
    {
        private void Form1_Load(object sender, EventArgs e)
        {
            System.Globalization.PersianCalendar p = new System.Globalization.PersianCalendar();
            CurrentPersianDate = PersianCalendarClass.ToPersian(DateTime.Now);

            label1.Text = PersianCalendarClass.ConvertDayToString(DateTime.Now);
            label2.Text = CurrentPersianDate.Day.ToString();
            label3.Text = PersianCalendarClass.ConvertMountToString(CurrentPersianDate.Mount);
            label4.Text = CurrentPersianDate.Year.ToString();
        }
        private static PersianDateLib.PersianCalendarClass.PersianDate CurrentPersianDate;
        public Form1()
        {
            InitializeComponent();
        }



        private void timer1_Tick(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = DateTime.Now.ToString("U");

        }
    }
}
